{% extends 'admin/base.html' %}
{% load util %}

{% block title %}
PSD Date Entry Stepping Stone
{% endblock %}

{% block content %}

{% if submitted_psdid %}
Just submitted date sheet for {{ submitted_psdid }}.
<p>
{% for d in dates %}
<br>{{ d }}
{% endfor %}
<p>
{% if err_message %}
<b>
Errors: {{ err_message|safe }}
</b>
{% endif %}
<hr>
{% endif %}

{% if submitted_psdid %} 
<h2>
<a href="{% url date-sheet event_name=event psdid=submitted_psdid %}">Re-edit {{submitted_psdid}} </a>
</h2>
{% endif %}

<hr>


{% if nextids %}
<h2>PSDID Jump:</h2>
{% for pid in nextids %}
<a href="{% url date-sheet event_name=event psdid=pid %}">{{pid}}</a> 
{% endfor %}
{% endif %}
<hr>
or...
<h2>Enter PSDID to go to form</h2> 
<form action="" method="POST">
        <table>
            {{ form.as_table }}
        </table>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        <input type="submit" value="Go!"></p>
    </form>



{% endblock %}
